<template>
  <div class="elPaginationVue">
    <div class="table">
      <span></span>
    </div>
    <el-pagination
      background
      layout="prev, pager, next"
      :page-size="pageSize"
      :current-page="pageNum"
      hide-on-single-page
      :total="total"
      @current-change="currentChange"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: 'elPaginationVue',
  props: {
    pageSize: {
      type: Number,
      default: 20,
    },
    pageNum: {
      type: Number,
      default: 1,
    },
    total: {
      type: Number,
      default: 1000,
    },
  },
  methods: {
    currentChange(pageNum) {
      this.$emit('currentChange', pageNum);
    },
  },
};
</script>

<style scoped lang="scss">
.elPaginationVue {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
</style>
